<html>
<head><meta charset="utf-8"><title>run_compiler · t-compiler/wg-rustc-dev-guide · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/196385-t-compiler/wg-rustc-dev-guide/index.html">t-compiler/wg-rustc-dev-guide</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/196385-t-compiler/wg-rustc-dev-guide/topic/run_compiler.html">run_compiler</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="211632533"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/196385-t-compiler/wg-rustc-dev-guide/topic/run_compiler/near/211632533" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/196385-t-compiler/wg-rustc-dev-guide/topic/run_compiler.html#211632533">(Sep 29 2020 at 14:57)</a>:</h4>
<p>from <a href="https://rustc-dev-guide.rust-lang.org/rustc-driver.html">https://rustc-dev-guide.rust-lang.org/rustc-driver.html</a></p>



<a name="211632552"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/196385-t-compiler/wg-rustc-dev-guide/topic/run_compiler/near/211632552" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/196385-t-compiler/wg-rustc-dev-guide/topic/run_compiler.html#211632552">(Sep 29 2020 at 14:57)</a>:</h4>
<blockquote>
<p>For those using rustc as a library, the rustc_interface::run_compiler() function is the main entrypoint to the compiler.</p>
</blockquote>



<a name="211632604"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/196385-t-compiler/wg-rustc-dev-guide/topic/run_compiler/near/211632604" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/196385-t-compiler/wg-rustc-dev-guide/topic/run_compiler.html#211632604">(Sep 29 2020 at 14:58)</a>:</h4>
<p>I don't think that's 100% correct</p>



<a name="211632656"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/196385-t-compiler/wg-rustc-dev-guide/topic/run_compiler/near/211632656" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/196385-t-compiler/wg-rustc-dev-guide/topic/run_compiler.html#211632656">(Sep 29 2020 at 14:58)</a>:</h4>
<p>I think it meant to say that the main entrypoint is rustc_driver::run_compiler() ?</p>



<a name="211632822"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/196385-t-compiler/wg-rustc-dev-guide/topic/run_compiler/near/211632822" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/196385-t-compiler/wg-rustc-dev-guide/topic/run_compiler.html#211632822">(Sep 29 2020 at 14:59)</a>:</h4>
<p>the rest of the description there is talking about rustc_interface::run_compiler() which is the one that receives a Compiler and a closure but as far as I understand is not the main entrypoint</p>



<a name="211632966"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/196385-t-compiler/wg-rustc-dev-guide/topic/run_compiler/near/211632966" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/196385-t-compiler/wg-rustc-dev-guide/topic/run_compiler.html#211632966">(Sep 29 2020 at 15:00)</a>:</h4>
<p>ahhh it says for those using rustc as a library</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>